<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <p style="font-size: 26px;color: #f44134;" align="center"><b>{$Think.session.name}全校课程安排</b></p>
</div>

<table border="1" width="60%" style="margin: 0 auto">
    <tr>
        <th>课程名</th>
        <th>先修课程</th>
        <th>后续课程</th>
        <th>开设学院</th>
    </tr>
    <foreach name="list" item="obj">
        <?php
        if($obj['before']=="")
        {
            $obj['before']="没有先修课程";
        }
        if($obj['after']=="")
        {
            $obj['after']="没有后续课程";
        }
        switch($obj['type'])
        {
            case 0:
                $a="公共数学教研部";
                break;
            case 1:
                $a="公共外语教研部";
                break;
            case 10:
                $a="计算机学院专业课";
                break;
            case 11:
                $a="经济学院专业课";
                break;
            default:
            $a="未识别";
            break;
        }
        ?>
        <tr>
            <td width="10%">{$obj.iname}</td>
            <td width="10%">{$obj.before}</td>
            <td width="10%">{$obj.after}</td>
            <td width="10%">{$a}</td>
        </tr>
    </foreach>

</table>
<div style="width: 60%;text-align: center;margin: 0 auto">
    {$page}
</div>

</body>
</html>